import request from '@/utils/request'

// 查询教练列表
export function listCoach(query) {
  return request({
    url: '/course/Coach/list',
    method: 'get',
    params: query
  })
}
// 查询教练列表-无交付小组教练
export function allCoach(query) {
  return request({
    url: '/course/Coach/all',
    method: 'get',
    params: query
  })
}
// 查询教练列表-教练个人流水列表
export function coachAmount(query) {
  return request({
    url: '/course/Coach/findCoachAmount',
    method: 'get',
    params: query
  })
}
// 查询教练详细
export function getCoach(id) {
  return request({
    url: '/course/Coach/view/' + id,
    method: 'get'
  })
}

// 新增教练
export function addCoach(data) {
  return request({
    url: '/course/Coach/add',
    method: 'post',
    data: data
  })
}

// 修改教练
export function updateCoach(data) {
  return request({
    url: '/course/Coach/update',
    method: 'put',
    data: data
  })
}

// 删除教练
export function delCoach(id) {
  return request({
    url: '/course/Coach/delete/' + id,
    method: 'delete'
  })
}


